<?php
/**
 * MAF
 **
 * File:
**/

/**
 * Class: MAF: E: PHP EXCEPTION
 **
 * @package MAF
 * @subpackage Core
**/
class maf__e__php_exception
	extends maf__e__exception {

	public function __construct($_code_, $_message_, $_file_, $_line_) {

		$this->code    = (integer) $_code_;
		$this->message = (string)  $_message_;
		$this->file    = (string)  $_file_;
		$this->line    = (integer) $_line_;

	}	# Function

	protected function getCall() {

		if( !$this->call ) {

			$trace = $this->getTrace();
			$trace = isset_or($trace[1], array());

			$this->call = sprintf(
				"%s%s%s()",
				isset_or($trace["class"], ""),
				isset_or($trace["type"],  ""),
				isset_or($trace["function"], "{main}")
			);

		}	# if

		return $this->call;

	}	# Function

}	# Class

/* EOF */